package cn.crce.cloud9.simple;

/**
 * @author OnCloud9
 * @description
 * @project NRCE-TEST
 * @date 2022年09月10日 上午 09:12
 */
public class Case15 extends Thread{
    private String sThreadName;
    public static void main(String argv[]){
        Case15 first = new Case15("first");
        //*********Found**********
        first.start();
        Case15 second = new Case15("second");
        //*********Found**********
        second.start();
    }

    //*********Found**********
    public Case15(String s){
        sThreadName = s;
    }

    public String getThreadName(){
        return sThreadName;
    }

    public void run(){
        for(int i = 0; i < 4; i ++){
            //*********Found**********
            System.out.println(this.getThreadName()+i);
            try{
                Thread.sleep(100);
            } catch(InterruptedException e){
                System.out.println(e.getMessage());
            }
        }
    }
}
